set_global_assignment -name FAMILY "Cyclone IV E"
set_global_assignment -name DEVICE EP4CE6F17C8
set_global_assignment -name RESERVE_ALL_UNUSED_PINS_WEAK_PULLUP "AS INPUT TRI-STATED"
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_location_assignment PIN_E1 -to clk
set_location_assignment PIN_M15 -to rst_n
set_location_assignment PIN_A5 -to seg_data[7]
set_location_assignment PIN_B8 -to seg_data[6]
set_location_assignment PIN_A7 -to seg_data[5]
set_location_assignment PIN_B6 -to seg_data[4]
set_location_assignment PIN_B5 -to seg_data[3]
set_location_assignment PIN_A6 -to seg_data[2]
set_location_assignment PIN_A8 -to seg_data[1]
set_location_assignment PIN_B7 -to seg_data[0]
set_location_assignment PIN_A4 -to seg_sel[5]
set_location_assignment PIN_B4 -to seg_sel[4]
set_location_assignment PIN_A3 -to seg_sel[3]
set_location_assignment PIN_B3 -to seg_sel[2]
set_location_assignment PIN_A2 -to seg_sel[1]
set_location_assignment PIN_B1 -to seg_sel[0]
set_location_assignment PIN_E15 -to key[1]
set_location_assignment PIN_E16 -to key[2]
set_location_assignment PIN_M16 -to key[3]
# set_location_assignment PIN_M15 -to key[4]
